#include "src/net/timer.h"

namespace fio66::net {
void Timer::Restart(Timestamp now) {
  if (repeat_) {
    expiration_ = AddTime(now, interval_);
  } else {
    expiration_ = Timestamp::Invalid();
  }
}
}  // namespace fio66::net
